package com.pucong.gitee.database.backup.business.database.service;

import com.pucong.gitee.database.backup.common.entity.database.dto.DatabaseDto;
import com.pucong.gitee.database.backup.common.entity.database.vo.ExeSqlResult;

public interface OperationDataSqlService {

    /**
     * 执行sql
     * @param databaseId
     * @param databaseDto
     * @return
     */
    ExeSqlResult executeSql(String databaseId, DatabaseDto databaseDto);

    /**
     * 处理事物
     * @param databaseId
     * @param databaseDto
     * @return
     */
    Boolean autoTransactionalCommit(String databaseId, DatabaseDto databaseDto);
}
